package com.eplayer.mqdx.utils;

import java.io.ByteArrayOutputStream;
import java.io.InputStream;

public class MyUtils {
	public static String RequestInput(InputStream is) {
		String info = null;
		try {			
			ByteArrayOutputStream baos = new ByteArrayOutputStream();
			int len = -1;
			byte[] bys = new byte[1024];
			while((len = is.read(bys)) != -1) {
                baos.write(bys, 0, len);
			}
			info = baos.toString("UTF-8");			
			is.close();
		} catch (Exception e) {
			return info;
		}
		return info;
	}
}
